import { computed, ref } from 'vue'
import { i18n as myi18n } from 'a3-libs'

export const locale = ref<keyof typeof myi18n>('en')
export const i18n = computed(() => myi18n[locale.value])
export default function useI18n() {
  return { locale, i18n }
}
